#ifndef AVATARLABEL_H
#define AVATARLABEL_H

#include <QLabel>
#include <QPixmap>
#include <QPainter>
#include <QPainterPath>

class AvatarLabel : public QLabel
{
    Q_OBJECT
public:
    explicit AvatarLabel(
        QWidget *parent = nullptr,
        const QPixmap &avatar = QPixmap(":/other/resoures/other/defaultAvatar.png"));

    void setPixmap(const QPixmap &pixmap);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QPixmap m_pixmap;

signals:
};

#endif // AVATARLABEL_H
